package com.egs.witzbackend.domain;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.Text;

@PersistenceCapable(detachable="true")
public class GameMatch {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	@Persistent
	private String player1Id;
	@Persistent
	private String player2Id;
	@Persistent
	private String gameId;
	@Persistent
	private Text gameString;
	
	public GameMatch(String gameId, String player1Id, String player2Id) {
		this.player1Id = player1Id;
		this.player2Id = player2Id;
		this.gameId = gameId;
	}
	public String getPlayer2Id() {
		return player2Id;
	}
	public String getPlayer1Id() {
		return player1Id;
	}
	
	public Text getGameString() {
		return gameString;
	}
	public void setGameString(Text gameString) {
		this.gameString = gameString;
	}
	
	public Key getKey() {
        return key;
    }
	
	public void setKey(Key key) {
		this.key = key;
	}
	public String getGameId() {
		return gameId;
	}
	public void setGameId(String gameId) {
		this.gameId = gameId;
	}
}
